package inheritance;

public class CatFamily {
    protected int legs;
    protected int eyes;
    protected boolean canEatPerson;
    protected   String food = "еду";

    public CatFamily(int legs, int eyes, boolean canEatPerson) {
        this.legs = legs;
        this.eyes = eyes;
        this.canEatPerson = canEatPerson;
    }
    public void eat() {
        System.out.println("Кушаю "+ this.food);
    }
}
